package com.demo.action;

import com.demo.model.News;
import com.demo.model.Product;
import com.jfinal.core.Controller;

/**
 * IndexController
 */
public class IndexController extends Controller {
	public void index() {
		
		setAttr("newsPage", News.me.indexPage(10));
		setAttr("prdPage", Product.me.indexPage(50));
		//setAttr("newsPage", News.me.paginate(getParaToInt(0, 1), 10));
		render("index.jsp");
	}
}





